package cn.iocoder.yudao.module.picturebook.controller.admin.readingrecord.vo;

import cn.iocoder.yudao.module.picturebook.dal.dataobject.book.BookDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 用户阅读记录 Response VO")
@Data
@Builder
@ExcelIgnoreUnannotated
public class ReadingRecordRespVO {

    @Schema(description = "阅读记录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7580")
    @ExcelProperty("阅读记录ID")
    private Long id;

    @Schema(description = "关联用户", requiredMode = Schema.RequiredMode.REQUIRED, example = "19742")
    @ExcelProperty("关联用户")
    private Long userId;

    @Schema(description = "关联书籍", requiredMode = Schema.RequiredMode.REQUIRED, example = "18594")
    @ExcelProperty("关联书籍")
    private BookDO book;

    @Schema(description = "阅读日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("阅读日期")
    private LocalDate readDate;

    @Schema(description = "阅读时长（分钟）")
    @ExcelProperty("阅读时长（分钟）")
    private Integer duration;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("更新时间")
    private LocalDateTime UpdateTime;

}